/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package Util;

import Entity.NhanVien;
import java.awt.event.KeyEvent;
import javax.swing.JComponent;
import javax.swing.JTextField;

/**
 *
 * @author Dark_Knight
 */
public class InstanceData {
    public static NhanVien loginNhanVien;
    public static void check(java.awt.event.KeyEvent evt){

        char c = evt.getKeyChar();
        int cc = (int) c;
        if(cc == 37 || cc == 39)
            return;
        if (    !((c >= 48) && (c <= 57)
            ||  (c == KeyEvent.VK_BACK_SPACE)
            ||  (c == KeyEvent.VK_DELETE)
            ||  (c == KeyEvent.VK_LEFT)
            ||  (c == KeyEvent.VK_RIGHT)
            ||  (c == KeyEvent.VK_TAB))) {
        evt.consume();
        }
    }
}
